﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="catenews.ascx.cs" Inherits="PCMS.Modules.catenews" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Panel ID="pnCate" runat="server">
    <div class='mainhome'>
        <div class='homefl1'>
            <div class='prohot'>
                <div class='prohot-in'>
                    <div class='Right_Box_Head'>
                        <h3>
                            <asp:HyperLink ID="hplCateParentName" runat="server"></asp:HyperLink>
                            <asp:HyperLink ID="hplCateChildName" runat="server"></asp:HyperLink>
                        </h3>
                    </div>
                    <div class='Right_Box_Body'>
                        <div class='pageSe7'>
                            <div class="listContent">
                                <asp:Literal ID="ltrError" runat="server"></asp:Literal>
                                <asp:ListView ID="lvListContent" runat="server" DataKeyNames="ID" OnPreRender="lvListContent_PreRender">
                                    <LayoutTemplate>
                                        <asp:PlaceHolder runat="server" ID="itemPlaceholder"></asp:PlaceHolder>
                                    </LayoutTemplate>
                                    <ItemTemplate>
                                        <div class="listContentItemNoImage ">
                                            <div class="listItemTitleNoImages ">
                                                <div class="listItemImage fl">
                                                    <a href="<%#"/"+Eval("Lang")+"/cn"+Eval("categoryID")+"-n"+Eval("ID")+"/"+ConvertToNoneUnicode(Convert.ToString(Eval("Title")))+".aspx" %>">
                                                        <asp:Image ID="Image1" runat="server" ImageUrl='<%# "~/Uploads/News/"+Eval("Thumb_Photo") %>'
                                                            Visible='<%# CheckHavingImage(Convert.ToString(Eval("Thumb_Photo")))%>' />
                                                    </a>
                                                </div>
                                                <h4>
                                                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#"~/"+Eval("Lang")+"/cn"+Eval("categoryID")+"-n"+Eval("ID")+"/"+ConvertToNoneUnicode(Convert.ToString(Eval("Title")))+".aspx" %>'
                                                        Text='<%# Eval("Title") %>' />
                                                    <asp:Label ID="Label2" runat="server" Text='<%#CheckNewsType(Convert.ToInt32(Eval("Type"))) %>'
                                                        CssClass="imagesType"></asp:Label>
                                                </h4>
                                                <span class="datetime hide">
                                                    <asp:Label ID="Label1" runat="server" Text='<%# String.Format("{0:dd/MM/yyyy} - {1:hh:mm}",Eval("CreateTime"),Eval("CreateTime")) %>'></asp:Label>
                                                </span>
                                                <div class="listItemShortDes">
                                                    <%# Eval("ShortDescription") %>
                                                </div>
                                            </div>
                                        </div>
                                    </ItemTemplate>
                                </asp:ListView>
                                <!---->
                                <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
                                    <asp:ListView ID="ListView1" Visible="false" runat="server" OnPreRender="ListView1_PreRender">
                                        <LayoutTemplate>
                                            <asp:PlaceHolder runat="server" ID="itemPlaceholder"></asp:PlaceHolder>
                                        </LayoutTemplate>
                                        <ItemTemplate>
                                            <div class="listContentItemNoImage ">
                                                <div class="listItemTitleNoImages">
                                                    <div class="rstitle">
                                                        <h4>
                                                            <a href="<%# Eval("link") %>">
                                                                <%# Eval("title") %></a></h4>
                                                    </div>
                                                    <div class="listItemShortDes listItemImage">
                                                        <%# Eval("description") %>
                                                    </div>
                                                </div>
                                            </div>
                                        </ItemTemplate>
                                    </asp:ListView>
                                    <asp:DataPager ID="DataPager1" runat="server" Visible="false" PagedControlID="ListView1">
                                        <Fields>
                                            <asp:NextPreviousPagerField ShowFirstPageButton="True" ShowNextPageButton="False"
                                                ShowPreviousPageButton="True" FirstPageText="<<" LastPageText="&gt;&gt;" NextPageText="&gt;"
                                                PreviousPageText="&lt;" />
                                            <asp:NumericPagerField />
                                            <asp:NextPreviousPagerField ShowLastPageButton="True" ShowNextPageButton="True" ShowPreviousPageButton="False"
                                                LastPageText=">>" NextPageText="&gt;" />
                                        </Fields>
                                    </asp:DataPager>
                                </telerik:RadAjaxPanel>
                                <!---->
                                <asp:Panel ID="PanelTop1" Visible='false' runat="server">
                                    <div class='cnewstop1'>
                                        <asp:ListView ID="lvTop1" runat="server" DataKeyNames="ID">
                                            <LayoutTemplate>
                                                <asp:PlaceHolder runat="server" ID="itemPlaceholder"></asp:PlaceHolder>
                                            </LayoutTemplate>
                                            <ItemTemplate>
                                                <div class='ntitle7'>
                                                    <h1>
                                                        <%# Eval("Title") %></h1>
                                                </div>
                                                <div runat="server" visible="false">
                                                    <%# Eval("ShortDescription") %>
                                                </div>
                                                <div>
                                                    <%# Eval("Description")%>
                                                </div>
                                            </ItemTemplate>
                                        </asp:ListView>
                                    </div>
                                </asp:Panel>
                                <div class="clear">
                                </div>
                                <div class="listCotnentPager">
                                    <asp:HyperLink ID="hplBack" runat="server" CssClass="listPagerLink"></asp:HyperLink>
                                    <asp:HyperLink ID="hplNext" runat="server" CssClass="listPagerLink"></asp:HyperLink>
                                </div>
                                <div class="clear">
                                </div>
                                <asp:Panel ID="pnListOtherNews" runat="server">
                                    <div class="listOtherContent">
                                        <h3>
                                            <asp:Label ID="lbListOtherTitle" runat="server" Text="Các tin khác" CssClass="listOtherContentTitle"></asp:Label></h3>
                                        <ul>
                                            <asp:Repeater ID="rptOtherNews" runat="server">
                                                <ItemTemplate>
                                                    <li>
                                                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#"~/"+Eval("Lang")+"/cn"+Eval("categoryID")+"-n"+Eval("ID")+"/"+ConvertToNoneUnicode(Convert.ToString(Eval("Title")))+".aspx" %>'
                                                            Text='<%# String.Format("{0} ({1:dd/MM})",Eval("Title"),Eval("UpdateTime")) %>' /></li>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </ul>
                                    </div>
                                </asp:Panel>
                                <div class="clear">
                                </div>
                                <div class="listContentDatePicker" runat="server" visible="false">
                                    <table>
                                        <tr>
                                            <td>
                                                <h4>
                                                    Xem bài theo ngày:</h4>
                                            </td>
                                            <td>
                                                <telerik:RadDatePicker ID="RadDatePicker1" runat="server" Culture="vi-VN" Font-Size="14px"
                                                    Skin="Vista" Width="180px" OnSelectedDateChanged="RadDatePicker1_SelectedDateChanged">
                                                    <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"
                                                        Skin="Vista">
                                                    </Calendar>
                                                    <DateInput DisplayDateFormat="dd/MM/yyyy" DateFormat="dd/MM/yyyy" EmptyMessage="&lt; Chọn ngày cần xem &gt;"
                                                        AutoPostBack="True">
                                                    </DateInput>
                                                    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                </telerik:RadDatePicker>
                                            </td>
                                            <td>
                                                <asp:Button ID="btnSearch" runat="server" Text="Xem" />
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                        </div>
                        <div class='clear'>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Panel>
